Type.registerNamespace("AjaxControlToolkit.HTMLEditor.ToolbarButton");AjaxControlToolkit.HTMLEditor.ToolbarButton.InsertHR=function(a){AjaxControlToolkit.HTMLEditor.ToolbarButton.InsertHR.initializeBase(this,[a])};AjaxControlToolkit.HTMLEditor.ToolbarButton.InsertHR.prototype={callMethod:function(){if(!AjaxControlToolkit.HTMLEditor.ToolbarButton.InsertHR.callBaseMethod(this,"callMethod"))return false;var a=this._designPanel;try{a._saveContent();var e=a._doc.createElement("div");e.innerHTML="<hr>";var b=e.firstChild,c=a._getSafePlace();if(!c)return;var d=c.parentNode;d.insertBefore(b,c);d.removeChild(c);b=b.nextSibling?b.nextSibling:b;AjaxControlToolkit.HTMLEditor._setCursor(b,a);setTimeout(function(){a.onContentChanged();a._editPanel.updateToolbar()},0);a.focusEditor();return true}catch(f){}}};AjaxControlToolkit.HTMLEditor.ToolbarButton.InsertHR.registerClass("AjaxControlToolkit.HTMLEditor.ToolbarButton.InsertHR",AjaxControlToolkit.HTMLEditor.ToolbarButton.MethodButton);